package com.mxpio.erp.common.enums;

public interface ItemEnums {
	enum PropType {
		ITEM("item", "物料"), GROUP("group", "物料组");

		PropType(String typeCode, String typeName) {
			this.typeCode = typeCode;
			this.typeName = typeName;
		}

		private String typeCode;

		private String typeName;

		public String getTypeCode() {
			return typeCode;
		}

		public void setTypeCode(String typeCode) {
			this.typeCode = typeCode;
		}

		public String getTypeName() {
			return typeName;
		}

		public void setTypeName(String typeName) {
			this.typeName = typeName;
		}

	}
	
	enum ItemSource {
		P("2", "采购"), M("1", "自制");

		ItemSource(String typeCode, String typeName) {
			this.typeCode = typeCode;
			this.typeName = typeName;
		}

		private String typeCode;

		private String typeName;

		public String getTypeCode() {
			return typeCode;
		}

		public void setTypeCode(String typeCode) {
			this.typeCode = typeCode;
		}

		public String getTypeName() {
			return typeName;
		}

		public void setTypeName(String typeName) {
			this.typeName = typeName;
		}
	}
	/*
	 * 1、推式：先发料后生产
	 * 2、装配拉式：装配件完工扣减
	 * 3、工序拉式：工序完工扣减（暂不支持）
	 * 4、供应方：物料倒冲扣减\MRP计划不考虑
	 * 5、大量式：物料倒冲扣减\MRP计划不考虑
	 */
	enum FeedingMode {
		PUSH("1", "推式"), PULL("2", "装配拉式"), PROCESS_PULL("3", "工序拉式"), JIT("4", "供应方"), STOCK("5", "大量式");

		FeedingMode(String typeCode, String typeName) {
			this.typeCode = typeCode;
			this.typeName = typeName;
		}

		private String typeCode;

		private String typeName;

		public String getTypeCode() {
			return typeCode;
		}

		public void setTypeCode(String typeCode) {
			this.typeCode = typeCode;
		}

		public String getTypeName() {
			return typeName;
		}

		public void setTypeName(String typeName) {
			this.typeName = typeName;
		}
	}
}
